home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
comm2
/
ampop118.lha
/
AmiPOP118
/
source
/
asyncio_protos.h
next >
Wrap
C/C++ Source or Header
|
1995-09-19
|
2KB
|
82 lines
#ifndef CLIB_ASYNCIO_PROTOS_H
#define CLIB_ASYNCIO_PROTOS_H
#ifndef LIBRARIES_ASYNCIO_H
#include "asyncio.h"
#endif
/*****************************************************************************/
#ifdef _DCC
#define _REG(x) __ ## x
#define _ASM
#define _ARGS __regargs
#else
#ifdef __GNUC__
#define _REG(x)
#define _ASM
#else /* __SASC__ */
/*#define _REG(x) register __ ## x
#define _ASM __asm
#define _ARGS __regargs*/
#define _REG(x)
#define _ASM
#define _ARGS
#endif /* __GNUC__ */
#endif /* _DCC */
#ifndef ASIO_SHARED_LIB
#ifndef ASIO_REGARGS
#undef _REG(x)
#define _REG(x)
#undef _ASM
#define _ASM
#ifdef _DCC
#undef _ARGS
#define _ARGS __stkargs
#else
#ifdef __GNUC__
#undef _ARGS
#else /* __SASC__ */
#undef _ARGS
#define _ARGS __stdargs
#endif /* __GNUC__ */
#endif /* _DCC */
#endif
#endif
/*****************************************************************************/
#ifdef NOEXTERNALS
_ASM _ARGS AsyncFile *OpenAsync( _REG( a0 ) const STRPTR fileName,_REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize, _REG( a1 ) struct ExecBase *SysBase, _REG( a2 ) struct DosLibrary *DOSBase );
_ASM _ARGS AsyncFile *OpenAsyncFromFH( _REG( a0 ) BPTR handle, _REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize, _REG( a1 ) struct ExecBase *SysBase, _REG( a2 ) struct DosLibrary *DOSBase );
#else
_ASM _ARGS AsyncFile *OpenAsync( _REG( a0 ) const STRPTR fileName,_REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize );
_ASM _ARGS AsyncFile *OpenAsyncFromFH( _REG( a0 ) BPTR handle, _REG( d0 ) OpenModes mode, _REG( d1 ) LONG bufferSize );
#endif
_ASM _ARGS LONG CloseAsync( _REG( a0 ) AsyncFile *file );
_ASM _ARGS LONG ReadAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) APTR buffer, _REG( d0 ) LONG numBytes );
_ASM _ARGS LONG ReadCharAsync( _REG( a0 ) AsyncFile *file );
_ASM _ARGS LONG ReadLineAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) STRPTR buffer, _REG( d0 ) LONG size );
_ASM _ARGS LONG WriteAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) APTR buffer, _REG( d0 ) LONG numBytes );
_ASM _ARGS LONG WriteCharAsync( _REG( a0 ) AsyncFile *file, _REG( d0 ) UBYTE ch );
_ASM _ARGS LONG WriteLineAsync( _REG( a0 ) AsyncFile *file, _REG( a1 ) STRPTR line );
_ASM _ARGS LONG SeekAsync( _REG( a0 ) AsyncFile *file, _REG( d0 ) LONG position, _REG( d1 ) SeekModes mode);
#endif